import request from '@/utils/request'

export default{
    // 1. 查询全部用户信息
    getListUser(current,limit,userQuery){
        return request({
            url: `/educenter/user/pageUserCondition/${current}/${limit}`,
            method: 'post',
            data: userQuery
          })
    },
    // 2. 根据id查询用户信息
    getUserById(id){
        return request({
            url: `/educenter/user/getById/${id}`,
            method: 'get',
          })
    },
    // 3. 根据id删除用户
    deleteUserById(id){
        return request({
            url: `/educenter/user/removeById/${id}`,
            method: 'delete',
          })
    },
    // 4. 根据id禁用用户
    disableUserById(id){
        return request({
            url: `/educenter/user/disable/${id}`,
            method: 'get',
          })
    },
    // 5. 根据id取消禁用用户
    enDisableUserById(id){
        return request({
            url: `/educenter/user/enDisable/${id}`,
            method: 'get',
          })
    },
}